<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>测试JS数组</title>
		<script>
			var arr01=new Array();
			var arr02=new Array(1,2,3.5,"abc");
			console.log(arr02.length);
			console.log(arr02);
			var a=[3,3.5,"abc"];
			console.log(a.length);
			console.log(a);
			for(var i=0;i<a.length;i++){
				console.log(a[i]);
			}
			for(var i in a){
				console.log(a[i]);
			}
		</script>
	</head>
	<body>
	</body>
</html>
